package com.gxp.util.common;

import java.text.DateFormat;
import java.text.SimpleDateFormat;

public interface GXPConstant {

	public static final DateFormat TIMEFORMAT = new SimpleDateFormat("yyyy-MM-dd HH:mm");
	
	public static final int ROLE_ADMIN_DEFAULT = 0;
	public static final int ROLE_BUYER = 1;
	
	public static final String ACTION_LOGIN = "ACTION_LOGIN";
	public static final String ACTION_LOGOUT = "ACTION_LOGOUT";
	
	public static final String MAPPER_KEY_USER_ID = "userId";
	public static final String MAPPER_KEY_GAME_ID = "gameId";
	public static final String MAPPER_KEY_SERVER_ID = "serverId";
	public static final String MAPPER_KEY_ORDER_ID = "orderId";
	public static final String MAPPER_KEY_GOODS_ID = "goodsId";
	public static final String MAPPER_KEY_GOODS_TYPE = "goodsType";
	public static final String MAPPER_KEY_NEW_STATUS = "newStatus";
	public static final String MAPPER_KEY_ROLE_ID = "roleId";
	
	public static final String MAPPER_KEY_GAME_KEYWORDS = "gameKeywords";
	public static final String MAPPER_KEY_SERVER_KEYWORDS = "serverKeywords";
	public static final String MAPPER_KEY_GOODS_KEYWORDS = "goodsKeywords";
	
    public static final String ERROR_USER_PASSWORD_NOT_CORRECT = "1";
	public static final String ERROR_USER_ALREADY_EXIST = "2";
	public static final String ERROR_USER_NOT_EXIST = "3";
	public static final String ERROR_KAPTCHA_NOT_CORRECT = "5";
	public static final String ERROR_CAPTCHA_NOT_GENERATE = "6";
	
	public static final String SITE_SETTING_KEY_EMAIL = "KEY_EMAIL";
	public static final String SITE_SETTING_KEY_EMAIL_SERVER = "KEY_MAIL_SERVER";
	public static final String SITE_SETTING_KEY_EMAIL_PASSWORD = "KEY_MAIL_PSW";
	
	public static final String KEY_ERRORS = "errors";
}
